package com.example.demo.rediesPorstroy;

import com.example.demo.materialdao.Materialldao;
import com.example.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by DELL on 2018/12/27.
 */
public class RediesPostroy {
    @Autowired
    private Materialldao materialldao;

    public List<User> queryall() {

        List<User> users=materialldao.queryall();

        return users;
    }

   public User querybyid(Integer id){

      return materialldao.querybyid(id);
   }

    public User update(User user){

        return materialldao. update(user);
    }

}
